package cn.com.lsy.product.lepao.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotEmpty;

@ApiModel
public class UpdateCourseTypeParam {

    @ApiModelProperty(value = "分类id")
    @DecimalMin(value = "1", message = "分类id必传")
    private int id;

    @ApiModelProperty(value = "分类名")
    @NotEmpty(message = "分类名不能为空")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
